package com.his.bean;

import java.io.Serializable;
import java.util.Objects;

/**
 * 科室表
 * @TableName dzm_his_department
 */
public class DzmHisDepartment implements Serializable {
    /**
     * 科室id
     */
    private Long did;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 编辑时间
     */
    private String updateTime;

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 科室名称
     */
    private String departmentName;

    /**
     * 科室编号
     */
    private String departmentNumber;

    /**
     * 医院id
     */
    private Integer hid;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DzmHisDepartment that = (DzmHisDepartment) o;
        return did.equals(that.did) && createTime.equals(that.createTime) && updateTime.equals(that.updateTime) && departmentName.equals(that.departmentName) && departmentNumber.equals(that.departmentNumber) && hid.equals(that.hid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(did, createTime, updateTime, departmentName, departmentNumber, hid);
    }

    private static final long serialVersionUID = 1L;

    /**
     * 科室id
     */
    public Long getDid() {
        return did;
    }

    /**
     * 科室id
     */
    public void setDid(Long did) {
        this.did = did;
    }

    /**
     * 创建时间
     */

    /**
     * 科室名称
     */
    public String getDepartmentName() {
        return departmentName;
    }

    /**
     * 科室名称
     */
    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    /**
     * 科室编号
     */
    public String getDepartmentNumber() {
        return departmentNumber;
    }

    /**
     * 科室编号
     */
    public void setDepartmentNumber(String departmentNumber) {
        this.departmentNumber = departmentNumber;
    }

    /**
     * 医院id
     */
    public Integer getHid() {
        return hid;
    }

    /**
     * 医院id
     */
    public void setHid(Integer hid) {
        this.hid = hid;
    }

    @Override
    public String toString() {
        return "DzmHisDepartment{" +
                "did=" + did +
                ", createTime='" + createTime + '\'' +
                ", updateTime='" + updateTime + '\'' +
                ", departmentName='" + departmentName + '\'' +
                ", departmentNumber='" + departmentNumber + '\'' +
                ", hid=" + hid +
                '}';
    }
}